package day03_work_a;

import java.util.ArrayList;

public class Test1 {
    public static void main(String[] args) {
        ArrayList<String>list1=new ArrayList<>();
        ArrayList<Person>list2=new ArrayList<>();
        ArrayList<Student>list3=new ArrayList<>();
        ArrayList<JavaaStudent>list4=new ArrayList<>();
        ArrayList<UIStudent>list5=new ArrayList<>();
        ArrayList<Teacher>list6=new ArrayList<>();
        ArrayList<JavaTeacher>list7=new ArrayList<>();
        ArrayList<UITeacher>list8=new ArrayList<>();
//print1(list1);
//print1(list2);
//print1(list3);
       // print2(list1);
        print2(list2);
        print2(list3);
        print2(list4);
        print2(list5);
        print2(list6);
        print2(list7);
        print2(list8);
        System.out.println("------------------");
        print3(list3);
        System.out.println("-------------------");
        print4(list4);
        print4(list2);




    }
    public static void print1(ArrayList<Object>list){};
    public static void print2(ArrayList<?extends Person>list){};
    public static void print3(ArrayList<?extends Student>list){};
    public static void print4(ArrayList<?super JavaaStudent>list){};



}
